﻿
(function () {
    CKEDITOR.dialog.add('addreference', function (editor) {
        return {
            title: '插入常用参考文献',
            minWidth: 500,
            minHeight: 150,
            references: [],
            contents:
			[
				{
				    id: 'info',
				    label: '测试',
				    title: '测试1',
				    elements:
					[
						{
						    type: 'select',
						    id: 'selReferences',
						    label: '请选择要插入的参考文献',
						    items: editor.config.references,
						    size: 8
						}
					]
				}
			],
            onOk: function () {
                var sel = this.getContentElement('info', 'selReferences');
                editor.insertText(sel.getValue());
            }
        };
    });
})();
